package com.yyj.jan.user.service;

import com.yyj.jan.user.entity.User;

import java.util.List;

public interface UserService {
    //查询所有用户
    public List<User> findAll();
    //查询单个用户
    public User findOne(String id);
    //根据用户名查询用户信息
    public User findOneByName(String name);
    //用户模糊查询
    public List<User> findUserLikeName(String name);

    //添加用户
    public  void add(User user);

    //删除用户
    public void delete(String id);

    public void update(User user);
}
